package org.nox.helloseries.util;

import org.apache.commons.io.FileUtils;
import org.apache.commons.io.FilenameUtils;
import org.nox.helloseries.domain.Serie;

public final class CoreUtils
{

    private CoreUtils()
    {
        super();
    }

    public static String getTempFolder()
    {
        return FileUtils.getTempDirectoryPath();
    }

    public static String getNouveauNomFichierFormate( Serie s )
    {
        return FilenameUtils.separatorsToSystem( getTempFolder() + "\\" + s.toString().replaceAll( " ", "." ) + ".torrent" );
    }

}
